package com.aracky.system.mapper;

import com.aracky.system.model.entity.SysRole;
import com.aracky.system.model.request.SysRoleRequest;
import com.aracky.system.model.request.SysUserRequest;
import com.aracky.system.model.vo.SysRoleVO;
import com.aracky.system.model.vo.SysUserVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色信息表 Mapper 接口
 * </p>
 *
 * @author zzp
 * @since 2022-07-14 11:22:57
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {
    /**
     * 角色分页查询
     * @param toPage
     * @param sysRoleRequest
     * @return
     */
    IPage<SysRoleVO> findRole (Page toPage, @Param("role") SysRoleRequest sysRoleRequest);
}
